<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>OA 登陆</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link href='<s:url value="/css/css.css" />' rel="stylesheet" type="text/css" />

<script type="text/javascript">
	function getNewImg() {
		var obj = document.getElementById("validationImg");
		var timenow = new Date().getTime();
		obj.src = obj.src + "?d=" + timenow;
	}
</script>
</head>

<body>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td height="147" background="images/top02.gif"><img
				src="images/top03.gif" width="776" height="147" /></td>
		</tr>
	</table>
	<s:property value="#parameters.message"/>
	<table width="562" border="0" align="center" cellpadding="0"
		cellspacing="0" class="right-table03">
		<tr>
			<td width="221"><table width="95%" border="0" cellpadding="0"
					cellspacing="0" class="login-text01">
					<tr>
						<td><table width="100%" border="0" cellpadding="0"
								cellspacing="0" class="login-text01">
								<tr>
									<td align="center"><img src="images/ico13.gif" width="107"
										height="97" /></td>
								</tr>
								<tr>
									<td height="40" align="center">&nbsp;</td>
								</tr>

							</table></td>
						<td><img src="images/line01.gif" width="5" height="292" /></td>
					</tr>
				</table></td>
			<td><s:form  namespace="/user" action="userLogin">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="31%" height="35" class="login-text02">用户名称：<br />
							</td>
							<td width="69%">
								<s:textfield name="user.userName" maxlength="20"/>
								
								
							</td>
						</tr>
						<tr>
							<td height="35" class="login-text02">密 码：<br /></td>
							<td width="69%">
								<s:password name="user.passWord" maxlength="15"/>
								
							</td>
						</tr>
						<tr>
							<td height="35" class="login-text02">验证图片：<br /></td>
							<td><img id="validationImg"
								src='<s:url namespace="/utils" action="validationImg" />'
								width="109" height="40" /> <a href="javascript:getNewImg()"
								class="login-text03">看不清楚，换张图片</a></td>
						</tr>
						<tr>
							<td height="35" class="login-text02">请输入验证码：</td>
							<td><s:textfield name="validationCode" maxlength="6" /> </td>
						</tr>
						<tr>
							<td height="35">&nbsp;</td>
							<td><input type="submit" class="right-button01" value="确认登陆" />
								<input name="Submit232" type="submit" class="right-button02"
								value="重 置" />
							</td>
						</tr>
					</table>
				</s:form>
			</td>
		</tr>
	</table>
</body>
</html>
